Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block.

<p>
  This rule is deprecated, use {rule:squid:S2221} instead.
</p>
